import React, { Component } from 'react'
import BackLayout from '../../layout/back/backLayout'
import { Button } from 'antd'
import axios from '../../config/http'

class BackIndex extends Component {
  constructor (props) {
    super(props)
    this.axiosTest1 = this.axiosTest1.bind(this)
  }
  axiosTest1 () {
    axios.get('/test').then(res => {
      console.log(res)
    })
  }
  render () {
    return (
      <BackLayout>
        <Button type='primary' onClick={this.axiosTest1}>我是back的孩子</Button>
      </BackLayout>
      // <div className='App'>
      //   <Button type='primary'>我是front的User</Button>
      // </div>
    )
  }
}

export default BackIndex
